package annotation;

import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;

public class AnnotationExample {
	
	@Override
	@MethodInfo(author="jack",comments="Main method",date="Nov 17 2012",revision=1)
	public String toString() {
		return "Overriden toString method";
	}
	
	@Deprecated
	@MethodInfo(comments="deprecated method",date="Nov 17 2013")
	public static void oldMethod() {
		System.out.println("old Method,don't use it");
	}
	
//	@SuppressWarnings({"unchecked","deprecation"})
	@SuppressWarnings({ "rawtypes", "unchecked"})
	@MethodInfo(author="lily",comments="Main Method",date="Nov 18 2017",revision=12)
	public static void genericsTest() throws FileNotFoundException {
		List l=new ArrayList();
		l.add("abc");
		oldMethod();
	}
}
